// 数组类型
// 写法一
let num: number[] = [12, 32, 4, 8]
console.log(num);
// 写法二
let srt:Array<String>=['df','fdf']
console.log(srt);

//联合类型
let arr: (string | number)[] = ['fd', 12]
console.log(arr);
let arr1: Array<number | boolean> = [16, true]
console.log(arr1);

let art: string | number = 12
console.log(art);

export{}


